/* GUI CONVERTED from mfptcga.i (converter v1.76) Thu Apr 11 05:25:26 2002 */
/* mfptcga.i - CHANGE PART NUMBER                                             */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                        */
/* All rights reserved worldwide.  This is an unpublished work.               */
/* $Revision: 1.8 $                                                           */
/*V8:ConvertMode=Maintenance                                                  */
/* REVISION: 1.0      LAST MODIFIED: 04/21/86   BY: EMB      */
/* REVISION: 4.0      LAST MODIFIED: 10/14/88   BY: flm *A484*/
/* REVISION: 4.0      LAST MODIFIED: 07/11/89   BY: emb *A761*/
/* REVISION: 6.0      LAST MODIFIED: 12/18/90   BY: emb *D262*/
/* REVISION: 7.3      LAST MODIFIED: 03/31/93   BY: pma *G900*/
/* REVISION: 7.3      LAST MODIFIED: 02/06/95   BY: jwy *F0F1*/
/*                                   03/15/95   by: srk *G0GN*/
/* REVISION: 8.6      LAST MODIFIED: 05/20/98   BY: *K1Q4* Alfred Tan         */
/* REVISION: 9.1      LAST MODIFIED: 08/13/00   BY: *N0KR* Mark Brown         */
/* Old ECO marker removed, but no ECO header exists *F0PN*                    */
/* $Revision: 1.8 $    BY: Jean Miller           DATE: 04/08/02  ECO: *P058*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

{gpfile.i &file_name='{1}'}

if file_found then do:

   find first {1} where {2} = {3} no-lock no-error.

   if not batchrun and available {1}
   then do:
      hide message no-pause.
           
      message " ".
      message " ".
        
      /* "Checking " + _desc + " file for affected parts.*/
      {pxmsg.i &MSGNUM=211 &ERRORLEVEL=1 &MSGARG1=file_desc}
   end.

   {gprun.i ""gpistran.p"" "(input 1, input file_desc)"}
/*GUI*/ if global-beam-me-up then undo, leave.


   repeat:

      find first {1} where {2} = {3} no-lock no-error.

      if available {1} then do i = 1 to 100:

         recno = recid({1}).
         find {1} exclusive-lock where recid({1}) = recno.
         {2} = {4}.
         accum "" (count).
         find next {1} where {2} = {3} no-lock no-error.
         if not available {1} then leave.

      end.
      else leave.

   end.

   /*fdn* if count > 0 then do: */
   /*fdn*/ if count >= 0 then do:
      /*fdn display {5} file_desc @ pt_desc1 count @ i. */
      /*fdn*/ display {5} "{2}" @ part1 string(time, "hh:mm:ss") @ part2 "{1}" @ pt_desc1 count @ i.
      down {5} 1.
      count = 0.
   end.

end.
